@import 'color.less';
*{
    margin: 0;
    padding: 0;
}
ul{
    list-style: none;
}
button{
    outline: none;
}
a{
    text-decoration: none;
}
//投票成功文字弹窗
.success{
    position: fixed;
    bottom: 50%;
    left: 12%;
    width: 76%;
    height: 40px;
    color: #8e8e8e;
    border-radius: 20px;
    background: rgba(255,255,255,0.7);
    z-index: 1000;
    border:1px solid #F4E8F9;
    opacity: 0;
    display: none;
    transition:opacity 0.5s;
    -moz-transition: opacity 0.5s;  /* Firefox 4 */
    -webkit-transition: opacity 0.5s;   /* Safari 和 Chrome */
    -o-transition: opacity 0.5s;
    p{
        line-height: 40px;
        text-align: center;
    }
}
//弹窗
.altcontent{
    position: fixed;
    display: none;
    width: 76%;
    height: 32%;
    top: 20%;
    left: 12%;
    border-radius: 10px;
    background: #fff;
    z-index: 1000;
    text-align: center;
    b{
       color: #f60;
       font-weight: normal;
    }
    i{
        color: #f00;
        font-style: normal;
    }
    img{
        height: 64%;
        margin: 16px;
    }
    p{
        text-align: center;
        line-height: 24px;
    }
    h3{
        font-weight: normal;
        font-size: 14px;
        text-align: left;
        text-indent: 5%;
        line-height: 30px;
    }
    h3:first-child{
        margin-top: 16%;
    }
    button{
        display: block;
        position: absolute;
        color: #fff;
        left: 20%;
        bottom: 10%;
        width: 60%;
        height: 16%;
        border-radius: 4px;
        border: none;
        font-size: 14px; 
        background: -webkit-linear-gradient(left, @btntop , @btnbuttom); /* Safari 5.1 to 6.0 */
        background: -o-linear-gradient(right, @btntop, @btnbuttom); /* Opera 11.1 to 12.0 */
        background: -moz-linear-gradient(right, @btntop, @btnbuttom); /* Firefox 3.6 to 15 */
        background: linear-gradient(to right, @btntop , @btnbuttom); /* 标准语法 */
    }
}
.alertbody{
    display: none;
    content: "";
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 900;
    left: 0;
    top:0;
    background: rgba(0,0,0,0.6);
}
//渐变背景
.linearbg{
    background:#cdace8; /* 一些不支持背景渐变的浏览器 */  
    background:-moz-linear-gradient(top,#e7dbf0, #cb86e6);
    background:-webkit-gradient(linear, 0 0, 0 bottom, from(#e7dbf0), to(#cb86e6));  
    background:-o-linear-gradient(top, #e7dbf0, #cb86e6); 
    height: auto;
    padding-bottom: 50px;
    div{
        z-index: 10;
    }
}
//导航
.navbar{
    z-index: 500;
    display: flex;
    position: fixed;
    left: 0;
    bottom:0;
    height: 48px;
    width: 100%;
    background: #f3f3f3;
    background:-moz-linear-gradient(top,#f3f3f3, #fff);
    background:-webkit-gradient(linear, 0 0, 0 bottom, from(#f3f3f3), to(#fff));  
    background:-o-linear-gradient(top, #f3f3f3, #fff); 
    a{
        flex: 1;
        display: inline-block;
        height: 48px;
        line-height: 48px;
        text-align: center;
        color: @navcolor;
    }
    a:first-child{
        text-indent: 16px;
    }
    .home-on{
        background: url(../img/home-on.png) no-repeat 24px center;
        background-size: 24px;
        color: @navactive;
    }
    .home{
        background: url(../img/home.png) no-repeat 24px center;
        background-size: 24px;
    }
    .apply{
        background: url(../img/aplay.png) no-repeat 20px center;
        background-size: 22px;
    }
    .apply-on{
        background: url(../img/apply-on.png) no-repeat 20px center;
        background-size: 22px;
        color: @navactive;
    }
    .vote{
        background: url(../img/vote.png) no-repeat 4px center;
        background-size: 22px;
        text-indent: 10px;
    }
    .vote-on{
        background: url(../img/vote-on.png) no-repeat 4px center;
        background-size: 22px;
        color: @navactive;
        text-indent: 10px;
    }
}
//倒计时
.countdown{
    height: auto;
    width: 100%;
    vertical-align: top;
    position: relative;
    img{
        margin-top: -10px;
        width: 100%;
        vertical-align: inherit;
        pointer-events: none;
    }
    p{
        display: block;
        position: absolute;
        top: 50%;
        margin-top: -15px;
        left: 0;
        width: 100%;
        height: auto;
        text-align: center;
        color: #fff;
    }
    p:before{
    content: "";
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    position: absolute;
    top: 50%;
    left: 20px;
    margin-top: -1px;
    }
    p:after{
    content: "";
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    position: absolute;
    top: 50%;
    right: 20px;
    margin-top: -1px;
    }
}
//雪花样式
#leafContainer{
    position: fixed;
    z-index: 0;
    width: 100%;
    height: 100%;
    top: 0;
    overflow: hidden;
}
#leafContainer > div{
    position: absolute;
    max-width: 100px;
    max-height: 100px;
    -webkit-animation-iteration-count: infinite, infinite;/* 1 ��ʾֻƮ��һ�� infinite Ϊ��*/
    -webkit-animation-direction: normal, normal;
    -webkit-animation-timing-function: linear, ease-in;
}
#leafContainer > div > img{
    width: 100%;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-direction: alternate;
    -webkit-animation-timing-function: ease-in-out;
    -webkit-transform-origin: 50% -100%;
}
@-webkit-keyframes fade{
    0%{
        opacity: 1;
    }
    95%{
        opacity: 1;
    }
    100%{
        opacity: 0;
    }
}
@-webkit-keyframes drop{
    0%{
        -webkit-transform: translate(0px, -50px);
    }
    100%{
        -webkit-transform: translate(0px, 650px);
    }
}
@-webkit-keyframes clockwiseSpin{
    0%{
        -webkit-transform: rotate(-50deg);
    }
    100%{
        -webkit-transform: rotate(50deg);
    }
}
@-webkit-keyframes counterclockwiseSpinAndFlip{
    0%{
        -webkit-transform: scale(-1, 1) rotate(50deg);
    }
    100%{
        -webkit-transform: scale(-1, 1) rotate(-50deg);
    }
}
//banner
.bannerbox{
    width: 100%;
    height: auto;
    overflow: hidden;
    vertical-align:top;
    img{
        float: left;
        position: relative;
        z-index: 10;
        height:auto;
        width: 100%;
        vertical-align: inherit;
        pointer-events: none;
    } 
}












